﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace DruidUnstuckerFlight
{
    [XmlRoot("UISettings", Namespace = "", IsNullable = false)]
    public class Settings
    {
        public static Settings Instance;
        public int AntiStuckHeight { get { return _antiStuckHeight; } set { _antiStuckHeight = value; } }
        private int _antiStuckHeight;
        public int CancelFlightFormSeconds { get { return _cancelFlightFormSeconds; } set { _cancelFlightFormSeconds = value; } }
        private int _cancelFlightFormSeconds;
        public int FlyUpSeconds { get { return _flyUpSeconds; } set { _flyUpSeconds = value; } }
        private int _flyUpSeconds;
        public int AntiStuckDistanceYards { get { return _antiStuckDistanceYards; } set { _antiStuckDistanceYards = value; } }
        private int _antiStuckDistanceYards;
        public int ReloadUITimer { get { return _reloadUITimer; } set { _reloadUITimer = value; } }
        private int _reloadUITimer;
        public bool DetectBlackscreen { get { return _detectBlackscreen; } set { _detectBlackscreen = value; } }
        private bool _detectBlackscreen;
        
        public Settings()
        {
            _antiStuckHeight = 24;
            _cancelFlightFormSeconds = 10;
            _flyUpSeconds = 15;
            _antiStuckDistanceYards = 10;
            _reloadUITimer = 20;
            _detectBlackscreen = true;

        }
    }
}
